package org.dizem.groupon.service.impl;

import org.dizem.groupon.dao.LinkDAO;
import org.dizem.groupon.model.domain.LinkEntity;
import org.dizem.groupon.service.LinkService;

import java.util.List;

/**
 * User: dizem
 * Time: 11-7-19 上午11:37
 */
public class LinkServiceImpl implements LinkService {
	private LinkDAO linkDAO;

	public LinkDAO getLinkDAO() {
		return linkDAO;
	}

	public void setLinkDAO(LinkDAO linkDAO) {
		this.linkDAO = linkDAO;
	}

	public void save(LinkEntity object) {
		linkDAO.save(object);
	}

	public void delete(LinkEntity object) {
		linkDAO.delete(object);
	}

	public void update(LinkEntity object) {
		linkDAO.update(object);
	}

	public LinkEntity getById(int id) {
		return linkDAO.getById(id);
	}

	public List<LinkEntity> loadAll() {
		return linkDAO.loadAll();
	}

	public List<LinkEntity> load(int firstResult, int maxResult) {
		return linkDAO.load(firstResult, maxResult);
	}

	public int getCount() {
		return linkDAO.getCount();
	}
}
